//
//  tosuTaskManager.h
//  ToDoList
//
// This code file is apart of project "iPhone-ToDo-List" 
// (http://code.google.com/p/iphone-todo-list/)
//
// Copyright (c) 2009 Frank Villasenor
//
// Distributed under the terms of the Lesser GNU General Public License.
// A copy of the license should be with these files. If not, you 
// can retrieve a copy from http://www.gnu.org/licenses/lgpl-3.0.txt
// 

#import <Foundation/Foundation.h>

@class tosuTask;

//
// The purpose of this class is to manage
// and control the taskList. It should be able 
// to add objects, remove objects and perhaps 
// filter objects.
@interface tosuTaskListManager : NSObject 
{
	NSMutableArray *taskList;
}

@property (retain, readonly) NSMutableArray *taskList;

- (bool)addTask:(tosuTask*)task; //Adds the given task to the list.
- (bool)removeTask:(tosuTask*)task; //removes the given task from the list

//
// Still planning -- not sure if these will be included
//- (tosuTask*)getTaskByTitle:(NSString*)title;
//- (NSUInteger)getTaskIndexByTitle:(NSString*)title;

//
// Returns the complet task list in a dictionary.
// The 'Key' is the title, the contained object is 
// the task.
- (NSDictionary*)getTasksDictionary; 

@end
